package com.xxr.mom.ci.charging.mapper.device;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxr.mom.ci.charging.device.entity.Pile;
import com.xxr.mom.ci.charging.dynamic.DB;
import com.xxr.mom.ci.charging.dynamic.DataSourceEnum;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author natsuki_kining
 */
@Repository
@DB(DataSourceEnum.CI_CHARGING_DEVICE)
public interface PileMapper extends BaseMapper<Pile> {

    /**
     * 根据站点id查询桩集合数据
     * @param stationId 站点id
     * @return 桩集合
     */
    List<Pile> selectByStationId(@Param("stationId") Long stationId);
}
